﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace BRMC.IntelligentCommunity.Migrations
{
    public partial class up_place : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Etime",
                table: "Places");

            migrationBuilder.DropColumn(
                name: "Stime",
                table: "Places");

            migrationBuilder.AddColumn<long>(
                name: "Neighbourhood_name",
                table: "Places",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ParkingCode",
                table: "Places",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ParkingName",
                table: "Places",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Neighbourhood_name",
                table: "Places");

            migrationBuilder.DropColumn(
                name: "ParkingCode",
                table: "Places");

            migrationBuilder.DropColumn(
                name: "ParkingName",
                table: "Places");

            migrationBuilder.AddColumn<DateTime>(
                name: "Etime",
                table: "Places",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<DateTime>(
                name: "Stime",
                table: "Places",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
        }
    }
}
